home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Oct 90 / MacApp.Tech$ 10⁄19⁄90 / 2184-Re Error 815- Unsafe-Oct90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.3 KB  |  42 lines  |  [TEXT/GEOL]

  1. Item    7349467                         16-Oct-90        05:38PDT
  2.  
  3. From:   POWERUP.ENG                     Power Up Software,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    RE>Error 815- Unsafe use
  8.  
  9. Attn:   MacApp.Tech$
  10. SentBy: MacApp . Tech
  11. Date   10/12/90
  12. Subject    RE>Error 815- Unsafe use
  13. From   MacApp . Tech
  14. To Transfinite Sys, D Eastlake,PR
  15. CC   MacApp.Tech$
  16.  
  17. Subject:   RE>Error 815: Unsafe use
  18. Dear Representative of Transfinite Systems,
  19.  
  20. This is one of the most common Object Pascal programming errors.  I can't
  21. count the number of 815's I've gotten.
  22.  
  23. If you look in the MPW Pascal manual, in the "Object-Oriented Programming"
  24. chapter, there's a section titled "Differences from Traditional Programming."
  25. It discusses, in a "Note", the actions which dereference an object reference.
  26. These actions can be converted to Rules for Avoiding Error 815:
  27.     • DON'T pass an object's field as a VAR parameter
  28.     •  DON'T pass an object's field, larger than 4 bytes, as a parameter
  29. (whether VAR or
  30.         not)
  31.     •  DON'T use a WITH statement for a field of an object that is itself a
  32. record (but not an
  33.         object reference)
  34.  
  35. Following these rules should keep you from seeing Error 815.  Hoping that this
  36. helps, I am
  37.  
  38. Yours,
  39.  
  40. James Plamondon
  41.  
  42.